import request from '@/utils/request'
import store from '@/store/index.js' // store
import auth from '@/plugins/auth.js'
import {
	transformPostBody,
	transformRequestURL
} from "@/utils/requestParams.js";

const queryParamTempalte = {
  queryParam: {
    "id": "string",
    "username": "string"
  },
  "order": "descending",
  "sort": "enterInstNeme"
}

// 查询设备报警信息 // /elder/deviceevent/update?result=未处理
export function QueryDeviceEvent() {
  return request({
    url: '/elder/deviceevent/page',
    method: 'post',
    params: transformRequestURL( {
         // result: null,
         pageNum: 1,
         pageSize: 1000,
       }),
    data:queryParamTempalte,
  })
}